DIO#.SOURCE
Description
Gets or sets the bi-directional output source for channel x when configured as a digital output (see DIO#.DIR).
Value | Description |
---|---|
0 - User | User controls the output value using DIO#.STATEU |
1 - Action Table | Action table controls the output value |
Examples
Usage
When DIO#.SOURCE = 0 (User) and DIO#.DIR = 1 (output), then DIO#.STATE will be controlled by DIO#.STATEU.
When DIO#.SOURCE = 1 (Action table) and DIO#.DIR = 1 (output), then DIO#.STATE will be controlled by the assigned action, if any.
If DIO#.DIR = 0 (input) then the DIO#.SOURCE parameter is ignored.
Code
Changing output state with STATEU and then changing SOURCE to be action table with no action configured:
--> DIO1.DIR 1 (output) --> DIO1.SOURCE 0 (user) --> DIO1.STATE 0 --> DIO1.STATEU 1 --> DIO1.STATE 1 --> DIO1.SOURCE 1 //Action table --> DIO1.STATE 0
Context
For more information see Digital Inputs and Outputs.
Versions
Action | Version | Notes |
---|---|---|
Implemented | 02-00-00-000 |
General Information
Type | Read/Write |
Units | N/A |
Range | 0 to 1 |
Default Value | 0 |
Data Type | Integer |
See Also | |
Stored in Non Volatile Memory |
Yes |
Variants Supported
All variants are supported
Fieldbus Information
Fieldbus![]() |
Parameter | Index | Sub-Index | Data Type | Float Scale | Units | Access | PDO Mappable |
---|---|---|---|---|---|---|---|---|
EtherCAT![]() |
DIO1.SOURCE | 0x368A | 0x5 | USINT | - | - | RW | False |
DIO2.SOURCE | 0x368B | 0x5 | USINT | - | - | RW | False | |
DIO3.SOURCE | 0x368C | 0x5 | USINT | - | - | RW | False | |
DIO4.SOURCE | 0x368D | 0x5 | USINT | - | - | RW | False | |
DIO5.SOURCE | 0x368E | 0x5 | USINT | - | - | RW | False | |
DIO6.SOURCE | 0x368F | 0x5 | USINT | - | - | RW | False |